2000W / 48V LLC Battery-Charger  V1.00
L1_Math_Funktionen.h
Go to the documentation of this file.
1 /**********************************************************/
20 /* Vermeidung rekursiver Einbindungen --------------------*/
21 #ifndef __L1_MATH_FUNC_H
22 #define __L1_MATH_FUNC_H
23 
24 /* Einbindung externer Module (include) ---------*/
25 
26 
27 /**********************************************************/
28 /*** Globale Konstanten und Makros (define) ***/
29 /**********************************************************/
30 
31 
32 
33 /**********************************************************/
34 /*** Globale Typen und Strukturen (typedef) ***/
35 /**********************************************************/
36 typedef struct {
37  SI_32 s32Speicher; /* Filterspeicher */
38  SI_16 s16DtT; /* Filterzeitkonstante */
40 
41 typedef struct {
42  SI_16 s16Kp; /* Proportionalverstärkung */
43  SI_16 s16Ki; /* Integralverstärkung */
44  SI_16 s16Np; /* Proportional Verstärkungsfaktor 2^n */
45  SI_16 s16Ymax; /* Reglerausgangsbegrenzung Maximal */
46  SI_16 s16Ymin; /* Reglerausgangsbegrenzung Minimal */
48 
49 typedef struct {
50  SI_32 s32Integral; /* Integralspeicher */
51  SI_16 s16Sollwert; /* Sollwert */
52  SI_16 s16Istwert; /* Istwert */
53  SI_16 s16Error; /* Regelabweichung */
54  SI_16 s16Ausgang; /* Reglerausgang */
55 } ST_PI_WERTE;
56 
57 /**********************************************************/
58 /*** Globale Variablen (Deklaration) (extern) ***/
59 /**********************************************************/
60 
61 
62 
63 /**********************************************************/
64 /*** Globale Funktionsprototypen (extern) ***/
65 /**********************************************************/
66 /**********************************************************/
73 extern SI_16 L1_PT1_Element(ST_PT1_ELEMENT *pstPt1Feld, SI_16 s16Input);
74 
75 /**********************************************************/
86 extern SI_16 L1_PI_Regler(ST_PI_WERTE *pstPiWerte, ST_PI_PARAMETER stPiParameter);
87 
88 
89 #endif /* __L1_MATH_FUNC_H */
90 
SI_16 L1_PI_Regler(ST_PI_WERTE *pstPiWerte, ST_PI_PARAMETER stPiParameter)
PI-Regler.
SI_16 L1_PT1_Element(ST_PT1_ELEMENT *pstPt1Feld, SI_16 s16Input)
Filter 1. Ordnung (PT1-Glied)
int32_t SI_32
Definition: StandardTypes.h:39
int16_t SI_16
Definition: StandardTypes.h:40